home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / libnix.lha / gnu / lib / libnix / sources.lha / stubs / submake < prev   
Encoding:
Text File  |  1994-04-24  |  858 b   |  40 lines

  1. OPTIONS=-I ../headers -O3 -Wall
  2. BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
  3. PATTERN="libbases/*" "misc/*" "*"
  4.  
  5. %.o: %.c
  6.     gcc $(OPTIONS) $*.c -c -o $*.o 2>&1|tee $*.err
  7.     -if test ! -s $*.err; then rm $*.err; fi
  8.  
  9. %.bo: %.c
  10.     gcc $(BOPTIONS) $*.c -c -o $*.bo 2>&1|tee $*.err
  11.     -if test ! -s $*.err; then rm $*.err; fi
  12.  
  13. all: libstubs.a blibstubs.a
  14.  
  15. makefile: libbases/dos.c submake ../headers/makemake
  16.     rx /headers/makemake $(PATTERN) >makefile
  17.  
  18. clean:
  19.     -rm libbases/* libnames/* */*.o */*.bo */*.err
  20.  
  21. veryclean: clean
  22.     -rm libstubs.a blibstubs.a makefile
  23.  
  24. libstubs.a: $(OBJECTS) makefile
  25.     -rm libstubs.a
  26.     ar -q libstubs.a $(OBJECTS)
  27.     ranlib libstubs.a
  28.  
  29. blibstubs.a: $(BOBJECTS) makefile
  30.     -rm blibstubs.a
  31.     ar -q blibstubs.a $(BOBJECTS)
  32.     ranlib blibstubs.a
  33.  
  34. libbases/dos.c: makebase library.list
  35.     -rm libbases/* libnames/*
  36.     rx makebase
  37.  
  38. .SUFFIXES:
  39. .SUFFIXES: .o .bo
  40.